package utilsJ2ME.listas;

import cultivameCore.motor.Refrescable;
import cultivameCore.utils.ListaRefrescable;

public class ListaRefrescableJ2ME implements ListaRefrescable{
	
	Refrescable[] list=new Refrescable[0];

	public void add(Refrescable arg0) {
		// TODO Auto-generated method stub
		Refrescable[] aux= new Refrescable[list.length+1];
		for(int i=0;i<list.length;i++){
			aux[i]=list[i];
		}
		aux[list.length]=arg0;
		list=aux;
	}

	public Refrescable get(int arg0) {
		// TODO Auto-generated method stub
		return list[arg0];
	}

	public int length() {
		// TODO Auto-generated method stub
		return list.length;
	}

}
